<html>
    <head>
        <title>NovelAI api key</title>
        <link rel="stylesheet" href="/css/notes.css">
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div id="main">
            <div id="content">
                <h2>Finding your NAI API key</h2>
                <h4>To get a NovelAI API key, follow these instructions:</h4>

                1. Login to NovelAI through the website.<br><br>

                2. Create a new story, or open an existing story.<br><br>

                3. Open the Network Tools on your web browser. (For Chrome or Firefox, you do this by pressing Ctrl+Shift+I, then switching to the Network tab.)<br><br>

                4. Generate something. You should see two requests to api.novelai.net/ai/generate-stream, which might look something like this:
                <img src="1.png"><br><br>
                5. Select the second request, then in the Headers tab of the inspection panel, scroll down to the very bottom. Look for a header called Authorization:<br><br>
                <img src="2.png"><br><br>
                The long string (after "Bearer", not including it) is your API key.<br><br>*Proxies and Cloudflare-type services may interfere with connection
            </div>
        </div>
    </body>
</html>
